<body class="app" data-ad="true">
<?php $CDN= $this->CommonHelper()->imageDomain();?>
<section class="app-content">
	<section class="page page-index noline page-none" data-plugin-type="info_front">
        <div class="top-bar">订单详情<a href="<?php echo $this->url('myorder', array('action'=>'index'));?>" class="btn-t-back"></a></div>

        <div class="info-list info-list-detail bw">
            <!--<a class="ico-arr ico-down" href="javascript:;"></a>-->
            <dl>
                <dt class="i-title"><b>订单号</b></dt>
                <dd><?php echo $this->escapeHtml($order['order_no']);?></dd>
            </dl>
            <dl>
                <dt class="i-title"><b>订单时间</b></dt>
                <dd><?php echo $this->escapeHtml($order['order_create_time']);?></dd>
            </dl>
            <dl>
                <dt class="i-title"><b>收货地址</b></dt>
                <dd><?php echo $this->escapeHtml($order['address_info']);?></dd>
            </dl>
            <dl>
                <dt class="i-title"><b>详细地址</b></dt>
                <dd><?php echo $this->escapeHtml($order['address_info']);?></dd>
            </dl>
            <dl>
                <dt class="i-title"><b>姓 名</b></dt>
                <dd><?php echo $this->escapeHtml($order['receiver_name']);?></dd>
            </dl>
            <dl><dt class="i-title"><b>联系方式</b></dt>
                <dd><?php echo $this->escapeHtml($order['cellphone']);?></dd>
            </dl>
            <dl><dt class="i-title"><b>单位信息</b></dt>
                <dd><?php echo $this->escapeHtml($userInfo['org_name']);?></dd>
            </dl>
            <dl><dt class="i-title"><b>备 注</b></dt>
                <dd><?php echo $this->escapeHtml($order['receiver_mark']);?></dd>
            </dl>
            <dl>
                <dt class="i-title"><b>支付方式</b></dt>
                <dd><?php echo $this->escapeHtml($order['trade_channel']);?></dd>
            </dl>
            <dl class="line mt10">
                <dt class="i-title"><b>  订单详情</b></dt>
                <dd>&nbsp;</dd>
            </dl>
            <div class="shop-info">
                <a href="javascript:;" class="btn-yel btn-service fr">客 服</a>
                <span><img src="<?php echo $CDN.$this->escapeHtml($org['org_logo']);?>"></span>
                <b><?php echo $this->escapeHtml($org['org_name']);?>商城／食堂</b>
            </div>
        </div>

        <div class="info-list bw mt20 mb20">
            <table cellpadding="0" cellspacing="0">
                <tbody>
                	<?php foreach ($orderitems as $item) : ?>
                    <tr>
                        <td class="t01"><?php echo $this->escapeHtml($item['oi_name']);?></td>
                        <td class="t02">¥ <?php echo $this->escapeHtml($item['oi_price']);?></td>
                        <td class="t03">×<?php echo $this->escapeHtml($item['oi_amount']);?></td>
                    </tr>
                     <?php endforeach; ?>

                    <tr class="total-price">
                        <td class="t01">总计：</td>
                        <td class="t02" style="color: #ff5500;">¥ <?php echo $this->escapeHtml($order['order_sum_price']);?></td>
                        <td class="t03">x<?php echo $this->escapeHtml($order['order_sum_product']);?></td>
                    </tr>
                    <tr class="total-discount">
                        <td class="t01">折 扣</td>
                        <td class="t02">¥ <?php echo $this->escapeHtml($order['discount']);?></td>
                        <td class="t03">&nbsp;</td>
                    </tr>
                    <tr class="total-express">
                        <td class="t01">邮 费</td>
                        <td class="t02">¥ <?php echo $this->escapeHtml($order['postage']);?></td>
                        <td class="t03">&nbsp;</td>
                    </tr>
                    <tr class="total-fact">
                        <td class="t01">实 付</td>
                        <td class="t02" style="color: #ff5500;">¥ <?php echo $this->escapeHtml($order['order_total_price']);?></td>
                        <td class="t03">&nbsp;</td>
                    </tr>
                </tbody>

            </table>
            <div class="remark-line">
                <span>快递</span>
                <span style="margin-left:50px; display: inline-block; width: 300px;">
                <?php echo $this->escapeHtml($order['express_name']);?></span>
                <span><?php echo $this->escapeHtml($order['express_no']);?></span>
                <!--<a href="javascript:;" class="btn-more-r"></a>-->
            </div>
        </div>

	</section>

</section>



<script type="text/javascript">
$(function () {
//详情展开按钮
    $('.info-list .ico-down').click(function(){
        if($(this).hasClass('ico-up')){
            $(this).removeClass('ico-up').next('.info-addr').siblings('.info-addr').hide();
        }else{
            $(this).addClass('ico-up').next('.info-addr').siblings('.info-addr').show();
        }
    })
});
</script>
